package utils;

import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.packet.Message;

public class MensagensListener implements org.jivesoftware.smack.MessageListener{

	@Override
	public void processMessage(Chat chat, Message message) {
	
		System.out.println("FROM: " + message.getFrom());
		System.out.println("TO: " + message.getTo());
		System.out.println("BODY: " + message.getBody());
		
		
	}

	
}
